﻿Chenxin.UI.PublicHouseAnalyse = Chenxin.extend(Chenxin.UI.PageCommon, {
    autoInitForm: false,
    actionUrl: 'service/publicHouseAnalyse.ashx',
    createGrid: function() {
        return new Chenxin.UI.Pagination({
            actionUrl: this.actionUrl + '?op=getlist',
            id: 'publichouse',
            renderTo: 'publichouse_table',
            pageSize: 5

        });
    },
    cancle: function() {

    },
    createSearch: function() {
        return new Chenxin.UI.PublicHouseAnalyseSearch({
            scope: this
        });
    },
    initComponent: function() {
        Chenxin.UI.PublicHouseAnalyse.superclass.initComponent.call(this);
    }
});


/**
*查询面板
*/
Chenxin.UI.PublicHouseAnalyseSearch=Chenxin.extend(Chenxin.UI.SearchCommon,{
    id: 'publichouse_search',
	initEvent:function(){
		var _this=this;
		$('#btn_search').click(function(){
			_this.scope.reloadGrid();
        });
	},
	createComboList: function() {
	    var tracetype = new Chenxin.UI.Combo({
	    containerId: '#typeanlyse',
	        tbxWidth: 40,
	        items: comboCommon.AnalyseType
	    });
	    var combl = new Chenxin.UI.StructComboList();
	    var structs = combl.comboList;
	    structs.push(tracetype);
	    return structs;
	},
	initComponent:function(){
		Chenxin.UI.PublicHouseAnalyseSearch.superclass.initComponent.call(this);
	}
});


$(document).ready(function(){
    var Mgr = new Chenxin.UI.PublicHouseAnalyse();
});





